2011年5月23日 — Switch statement in PHP injected HTML ... <? switch ($var): ?> <? case 1: ?> It's 1! <? break ?> <? endswitch ?> I want to do something like that, ...
The switch statement is similar to a series of IF statements on the same expression. In many occasions, you may want to compare the same variable (or expression) ...
The switch keyword is used to create a switch conditional. Switch conditionals choose a block of code to run based on the value of an expression. Related Pages.
The switch statement is used to perform different actions based on different conditions. The PHP switch Statement. Use the switch statement to select one of ...